package com.javalei.api;

import com.javalei.dao.jd_seckillMapper;
import com.javalei.pojo.jd_seckill;

import com.sun.org.apache.xpath.internal.SourceTree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.sound.midi.Soundbank;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by wuyanzu on 2017/5/14.
 */
@Controller
public class getSeckillList {

    @Autowired
    private  jd_seckillMapper jd1;

    @RequestMapping("/getList")
    @ResponseBody
    public List<jd_seckill> getList(){

        System.out.println("进入了list");
        List<jd_seckill> list= jd1.getList();
        for (jd_seckill jd_seckill : list) {
            System.out.println(jd_seckill.getWname());
        }

        return  list;
    }
}
